<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/corp/include/taglibs.jsp"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>1</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="-1000">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<LINK href="${ctx }/css/style.css" type=text/css rel=stylesheet>
	<LINK href="${ctx }/css/corp/css.css" type=text/css rel=stylesheet>
		<script type='text/javascript'
		src='<%=request.getContextPath()%>/dwr/util.js'></script>
	<script type='text/javascript'
		src='<%=request.getContextPath()%>/dwr/engine.js'></script>
	<script type='text/javascript'
		src='<%=request.getContextPath()%>/dwr/interface/sysDwr.js'></script>
		
</head>		
<jsp:include flush="true" page="js.jsp"></jsp:include>
<body >
<div id="Layer2" class=Layer2 ></div>
<div id="Layer3" class=Layer3></div>
<s:form action="/corp/corpPublication_list.do" name="publicationForm">
<input type="hidden" name="publicationid" value="${id}"/>
<input type="hidden" name="key" />
<table width="100%" border="0">
<tr>
<td width="12">
</td>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center" >
  <tr>
    <td height="10" colspan="3">&nbsp;</td>
  </tr>
  <tr>
    <td height="25" colspan="2"><span class="h3">&nbsp;<img src="${ctx }/images/corp/pic_biao1.gif" width="11" height="11" />&nbsp;已审核电子书列表</span></td>
	 <td height="25"  align="right"><table width="100%" border="0">
       <tr>
         <td>审核状态</td>
         <td>
         <input type="radio" name="isAudting" value="1" checked="checked" onclick="submit();">已通过
         <input type="radio" name="isAudting" value="2" onclick="submit();">未通过
		 </td>
         <td align="right"><input type="checkbox"  id="allselect"  onclick="selectall(this.id)"/>	全选				 
					  <input type="button" value="删除所选"  style="cursor:hand;"  onclick="moreselectdelete()"/>
					   <input type="button" value="搜索" style="cursor:hand;"  onclick="search();"/></td>
       </tr>
     </table></td>
  </tr>
</table>
</td>
<td width="15">
</td>
</tr>
<tr>
<td>
</td>
<td>
<table width="100%" border="0"  cellpadding="0" cellspacing="1" bordercolor="#CCCCCC" bgcolor="#999999" style="border:1px solid #949494">
  <tr class=tb_1>
    <td width="11%" height="25" align="center" class="h3">选择</td>
    <td width="29%" height="25" align="center" class="h3">电子书</td>
    <td width="12%" height="25" align="center" class="h3">标题</td>
    <td width="12%" height="25" align="center" class="h3">类型</td>
    <td width="12%" height="25" align="center" class="h3">出版物类型</td>
    <td width="12%" align="center" class="h3">审核状态</td>
    <td width="12%" height="25" align="center" class="h3">操作</td>
  </tr>
   <c:if test="${!empty requestScope.corpPublicationList }">
    <c:forEach var="publication" items="${requestScope.corpPublicationList}"> 
  <tr>
    <td align="center" bgcolor="#FFFFFF"><input type="checkbox"  name="pubid"  value="&amp;publicationid=${publication.id}"/></td>
    <td  style="height:140px;"  valign="middle" align="center" bgcolor="#FFFFFF">
    <table width="60" border="0" cellpadding="2" cellspacing="2"
											style="border:2px solid #949494;">
											<tr>
												<td bgcolor="#FFFFFF" valign="middle">
													<img onMouseOut="closelayer(false);"
														onmouseover="showpic(this.src);"
														src="${ctx}/${requestScope.imagepath}${publication.pubPath }/${requestScope.thumbpath}"
														width="60" style="height:80" />												</td>
											</tr>
										</table>    </td>
    <td align="center" bgcolor="#FFFFFF"><span class="h5">${publication.title}</span></td>
    <td align="center" bgcolor="#FFFFFF"><span class="h5">
	<c:choose>
					  <c:when test="${publication.pubType==1}">
					   单页					  </c:when>
					  <c:otherwise>
					   双页					  </c:otherwise>
					  </c:choose>	
	
	</span></td>
    <td align="center" bgcolor="#FFFFFF"> <span class="h5"><c:forEach var="typeDict" items="${requestScope.typeDicts}">
                          
							 <c:if test="${typeDict.classCode==publication.typeId}">
						  ${typeDict.classValue}						</c:if>
                          </c:forEach></span>	</td>
   <td align="center" bgcolor="#FFFFFF">
								<span class="h5">
									<c:choose>
									   <c:when test="${publication.isAuditing==1}">
									   	已通过
									   </c:when>
									   <c:when test="${publication.isAuditing==2}"> 
									     	
									     未通过
									     
									   </c:when>
									</c:choose>
									 </span>
									</td>
    <td align="center" bgcolor="#FFFFFF"><table width="100" border="0" cellpadding="3" cellspacing="3">
      <tr>
        <td><table width="100" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="4" align="left"><img src="${ctx }/images/corp/anniu_left.gif" width="4" height="22" /></td>
            <td width="84" align="center" background="${ctx }/images/corp/anniu_cenner.gif" class="h4">
			<a href="javascript:displaycontent('${publication.id}')">查 看</a></td>
            <td width="4" align="right"><img src="${ctx }/images/corp/anniu_right.gif" width="4" height="22" /></td>
          </tr>
        </table></td>
        <td><table width="100" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="4" align="left"><img src="${ctx }/images/corp/anniu_left.gif" width="4" height="22" /></td>
            <td width="84" align="center" background="${ctx }/images/corp/anniu_cenner.gif" class="h4"> 
            <c:choose>
															   <c:when test="${publication.pubType==2 }">
															     <c:set var="width" value="${publication.width*2}"></c:set>
															   </c:when>
															   <c:otherwise>
															    <c:set var="width" value="${publication.width}"></c:set>
															   </c:otherwise>
															</c:choose> 
          <a href="javascript:addcontent('${ctx }/corp/corpPublicationPage_show.do?publicationid=${publication.id }&fileformat=${requestScope.fileformat}&leftfilesize=${requestScope.leftsize}&filewh=${width}*${publication.height}')">
           添加内容</a>           </td>
            <td width="4" align="right"><img src="${ctx }/images/corp/anniu_right.gif" width="4" height="22" /></td>
          </tr>
        </table></td>
        <td><table width="70" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="4" align="left"><img src="${ctx }/images/corp/anniu_left.gif" width="4" height="22" /></td>
            <td width="84" align="center" background="${ctx }/images/corp/anniu_cenner.gif" class="h4">
			 <a href="javascript:modify('${ctx }/corp/corpPublication_editui.do?publicationid=${publication.id }')">修 改</a></td>
            <td width="4" align="right"><img src="${ctx }/images/corp/anniu_right.gif" width="4" height="22" /></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table width="100" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="4" align="left"><img src="${ctx }/images/corp/anniu_left.gif" width="4" height="22" /></td>
            <td width="84" align="center" background="${ctx }/images/corp/anniu_cenner.gif" class="h4"><a href="javascript:void(window.open('${ctx}/showBook_showbook.do?publicationid=${publication.id }','_blank','status=yes,top=0,left=0,width=920,height=474'));">预 览</a></td>
            <td width="4" align="right"><img src="${ctx }/images/corp/anniu_right.gif" width="4" height="22" /></td>
          </tr>
        </table></td>
        <td><table width="100" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="4" align="left"><img src="${ctx }/images/corp/anniu_left.gif" width="4" height="22" /></td>
            <td width="84" align="center" background="${ctx }/images/corp/anniu_cenner.gif" class="h4">
            <a
																	href="javascript:editpuborder('${ctx }/corp/corpPublication_editpubui.do?publicationid=${publication.id }')">编辑内容</a>
            </td>
            <td width="4" align="right"><img src="${ctx }/images/corp/anniu_right.gif" width="4" height="22" /></td>
          </tr>
        </table></td>
        <td><table width="70" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="4" align="left"><img src="${ctx }/images/corp/anniu_left.gif" width="4" height="22" /></td>
            <td width="84" align="center" background="${ctx }/images/corp/anniu_cenner.gif" class="h4"> <a
																href="javascript:deletethis('${ctx }/corp/corpPublication_delete.do?publicationid=${publication.id}')"
																onclick="return window.confirm('确定要删除吗?');">删 除</a></td>
            <td width="4" align="right"><img src="${ctx }/images/corp/anniu_right.gif" width="4" height="22" /></td>
          </tr>
		  
		
        </table></td>
      </tr>
     <!--  
      <tr>
											<td>
													<table width="100" border="0" cellpadding="0"
														cellspacing="0">
														<tr>
															<td width="4" align="left">
																<img src="${ctx }/images/corp/anniu_left.gif" width="4"
																	height="22" />
															</td>
															<td width="84" align="center"
																background="${ctx }/images/corp/anniu_cenner.gif"
																class="h4">
																<a
																	href="javascript:editpuborder('${ctx }/corp/corpPublication_seniorsetui.do?publicationid=${publication.id}')"
																	>高级设置</a>
															</td>
															<td width="4" align="right">
																<img src="${ctx }/images/corp/anniu_right.gif" width="4"
																	height="22" />
															</td>
														</tr>


													</table>
										
									</td>
									<td width="15">
									</td>
								</tr>-->
    </table></td>
  </tr>
  
     </c:forEach>
				 	<tr>
					  <td align="center" colspan="8"  bgcolor="#FFFFFF"> 
					 <div class="pnav"> <tool:page rscount="${pubcount}" currentpage="${currentpage}" url="corp/corpPblication_list.do?1=1&${searchStr}" pageStytle="${pageStytle}"/></div>
					  					 </td>
	  </tr>
		   </c:if>
				   <c:if test="${empty requestScope.corpPublicationList }"><tr><td  align="center" colspan="8"  bgcolor="#FFFFFF"><blockquote><br></blockquote>                     
                     </td>
					   </tr></c:if>
</table>
</td>
</tr>
</table>
 <c:if test="${!empty requestScope.corpPublicationList }">
   <mytag:showpublicationdetail typeDicts="${requestScope.typeDicts}" imgurl="${ctx}/images/corp/"  publicationlist="${requestScope.corpPublicationList}" corpCatalogs="${requestScope.corpCatalogs}"></mytag:showpublicationdetail>
   </c:if>
</s:form>
</body>
</html>